home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13172 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: sydney.DIALix.oz.au!not-for-mail
  2. From: sad@sydney.DIALix.oz.au (John Heenan)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: help sending data to comm port
  5. Date: 24 Mar 1996 10:57:51 +1100
  6. Organization: DIALix Services, Sydney, Australia.
  7. Sender: sad@sydney.DIALix.oz.au
  8. Message-ID: <4j235v$jn7$1@sydney.DIALix.oz.au>
  9. References: <4iuuha$66n@poisson.nosc.mil>
  10.  
  11. Richard Lay (lay@cod.nosc.mil) wrote:
  12. : Hi all!  I've written a little program in Borland C++ 4.5 and 
  13. : would like to send the output bits to a comm port for access by 
  14. : another device.  How do I do this?  I don't even know where to 
  15. : begin to look to find out how to do something like this.  Any 
  16. : advice or references are appreciated!  Thanks!
  17.  
  18.  
  19. Hi Rich
  20.  
  21. Since you are using Borland you are clearly compiling for a DOS or 
  22. Windows platform.
  23.  
  24. If your program is run from the command line then you might be able to 
  25. start it with an output redirection, for example: prog > com1.  You can
  26. initialise the com port first with a mod command.  
  27.  
  28. John Heenan
  29. -- 
  30. +----------------------------------------------------------------+
  31. | John Heenan, Sydney Australia       john@valentia.dialix.oz.au |
  32. | John's WWW pages have the controversial SWIM FAQ (and speech!) |
  33. |               http://sydney.dialix.oz.au/~sad                  |
  34. +----------------------------------------------------------------+
  35.  
  36.  
  37.